<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>调课系统</title>
    <link rel="shortcut icon" href="../img/cqutLog.jpg" th:href="@{../img/cqutLog.jpg}" type="image/x-icon">
    <link rel="stylesheet" href="../layui/css/layui.css" th:href="@{/layui/css/layui.css}">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" style="font-size: 24px">调课系统</div>
        <span th:text="${session.user.id}" style="opacity: 0;" id="userid"></span>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img class="layui-nav-img" src="../img/face.png"
                         th:src="${session.user.head == '' ? '../img/face.png' : session.user.head}">
                    <span th:text="${session.user.username}" style="color: white;" id="username">请登录</span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" id="myInfo">个人中心</a></dd>
                    <dd><a href="/Class/login/loginOut" id="loginOut">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll" id="test1">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">主页</a>
                    <dl class="layui-nav-child">
                        <dd id="user"><a href="../templates/userInfo.html" th:href="@{/templates/userInfo.html}" target="ifr">个人信息</a></dd>
                        <dd th:if="${session.user.userType}==1"><a href="userTable.html" th:href="@{/templates/userTable.html}" target="ifr">个人课表查看</a></dd>
                        <dd th:if="${session.user.userType}==1"><a href="tableInfo.html" th:href="@{/templates/tableInfo.html}" target="ifr">总课表查看</a></dd>
                        <dd><a href="noticeInfo.html" th:href="@{/templates/noticeInfo.html}" id="notice" target="ifr">公告查看</a></dd>
                        <dd th:if="${session.user.userType}==0"><a href="add/noticeAdd.html" th:href="@{/templates/add/noticeAdd.html}" target="ifr">公告发布</a></dd>
                    </dl>
                </li>
            </ul>
            <ul class="layui-nav layui-nav-tree"  lay-filter="test" th:if="${session.user.userType}==0">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">数据管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="admin/userAdmin.html" th:href="@{/templates/admin/userAdmin.html}" target="ifr">用户管理</a></dd>
                        <dd><a href="admin/classAdmin.html" th:href="@{/templates/admin/classAdmin.html}" target="ifr">班级管理</a></dd>
                        <dd><a href="admin/courseAdmin.html" th:href="@{/templates/admin/courseAdmin.html}" target="ifr">课程管理</a></dd>
                        <dd><a href="admin/roomAdmin.html" th:href="@{/templates/admin/roomAdmin.html}" target="ifr">教室管理</a></dd>
                        <dd><a href="admin/tableAdmin.html" th:href="@{/templates/admin/tableAdmin.html}" target="ifr">课表管理</a></dd>
                        <dd><a href="admin/noticeAdmin.html" th:href="@{/templates/admin/noticeAdmin.html}" target="ifr">公告管理</a></dd>
                        <dd><a href="admin/collegeAdmin.html" th:href="@{/templates/admin/collegeAdmin.html}" target="ifr">学院管理</a></dd>
                        <dd><a href="admin/otherAdmin.html" th:href="@{/templates/admin/otherAdmin.html}" target="ifr">其它管理</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe src="../templates/userInfo.html" th:src="@{/templates/userInfo.html}" style="border: none;width: 100%;height: 99%;" name="ifr" id="ifr"></iframe>
    </div>

    <div class="layui-footer">
        <div style="position: absolute;left: 50%;top: 0;margin-left: -135px;">©2021 计算机学院11703060219@cqut.com</div>
    </div>
</div>
<script src="../layui/layui.js" th:src="@{/layui/layui.js}"></script>
<script src="../js/index.js" th:src="@{/js/index.js}"></script>
</body>
</html>